//
//  BBTabBar.m
//  QuLuoMianApp
//
//  Created by zyz on 2017/12/19.
//  Copyright © 2017年 科大讯飞. All rights reserved.
//

#import "BBTabBar.h"
#import "UIImage+Extension.h"

@implementation BBTabBar

- (instancetype) initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        // 设置背景图片
        self.backgroundImage = [UIImage imageNamed:@"tabbar-light"];
        
        //    self.tintColor
        
        // 设置tabbar 背景图片
        //    NSBundle *currentBundle = [NSBundle bundleForClass:[self class]];
        //    NSString *bundleName = [currentBundle.infoDictionary[@"CFBundleName"] stringByAppendingString:@".bundle"];
        //    NSString *path = [currentBundle pathForResource:@"tabbar_bg@3x.png" ofType:nil inDirectory:bundleName];
        
        UIImage *image = [UIImage imageNamed:@"tabbar_bg"];
        
        
        self.backgroundImage = [UIImage imageWithColor:[UIColor colorWithR:57 G:79 B:161 alpha:1]];
        
    }
    return self;
}


@end
